<div class="app">
  <header>
    <h2> {{ title }}</h2>
  </header>
  <div class="content">
    <router-outlet></router-outlet>
    <p (click)="dothing()">获取数据</p>
    <li *ngFor='let item of list'>编号:{{item.id}}-------姓名:{{item.name}}</li>
  </div>
  <footer>
    <ul class="list">
      <li routerLink="home">首页</li>
      <li routerLink="capacity">智能</li>
      <li routerLink="some">有品</li>
      <li routerLink="user">我的</li>
    </ul>
  </footer>

</div>
